/*
 * @(#)CompanyHonorMod.java 2011-12-07
 *
 * Copyright 2011 北龙中网（北京）科技有限责任公司. All rights reserved.
 */
package cn.shangjia.shop.controller.mod;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.shangjia.common.dao.support.Page;
import cn.shangjia.common.domain.CompanyImg;
import cn.shangjia.shop.controller.base.AbstractController;
import cn.shangjia.shop.service.CompanyImgService;

/**
 * 企业 荣誉证书 
 *
 * @author <a href="mailto:jinzhongze@knet.cn">jinzhongze</a>
 * @version 1.0, 2011-12-07 13:45:12
 * @since 1.0
 */
@Controller
public class CompanyHonorMod extends AbstractController {
	
	@Resource
	private CompanyImgService companyImgService;
	
	/**
	 *  荣誉证书页面
	 * 
	 * @param userid
	 * @param model
	 * @param pageNo
	 * @param pageSize
	 * @return
	 * @author <a href="mailto:jinzhongze@knet.cn">jinzhongze</a>
	 */
	@RequestMapping("/shop/module/companyHonor/index.html")
	public void mod_companyHonor(ModelMap model, String pageNo, String pageSize, String userid){
		Page<CompanyImg> page = companyImgService.findHonorListByUserId(userid, getInt(pageNo), getInt(pageSize, /*每页数量待定*/6));
		model.addAttribute("page", page);
	}
	
}
